package com.bdqn.t382.answer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

public class Player {
    private Equip armet; // 头盔
    private Equip loricae; // 铠甲
    private Equip boot; // 靴子
    private Equip ring; // 指环

    public Player() {
    }

    // 构造器注入
    @Autowired
    public Player(@Qualifier("zhanShenArmet") Equip armet, @Qualifier("lianHuanLuoZiJia") Equip loricae, @Qualifier("boSiZhuiFengXue") Equip boot, @Qualifier("lanMoZhiHuan") Equip ring) {
        this.armet = armet;
        this.loricae = loricae;
        this.boot = boot;
        this.ring = ring;
    }

    // 省略 getters & setters
    public Equip getArmet() {
        return armet;
    }

    public void setArmet(Equip armet) {
        this.armet = armet;
    }

    public Equip getLoricae() {
        return loricae;
    }

    public void setLoricae(Equip loricae) {
        this.loricae = loricae;
    }

    public Equip getBoot() {
        return boot;
    }

    public void setBoot(Equip boot) {
        this.boot = boot;
    }

    public Equip getRing() {
        return ring;
    }

    public void setRing(Equip ring) {
        this.ring = ring;
    }
}